* {
    margin: 0;
    padding: 0;
}
.w {
    width: 1200px;
    margin: auto;
}
body {
    background-color: #f3f5f7;
}
li {
    list-style: none;
    
}
a {
    text-decoration: none;
}
.clearfix:before,.clearfix:after {
    content:"";
    display:table; 
  }
  .clearfix:after {
    clear:both;
  }
  .clearfix {
     *zoom:1;
  }   
 

.box {
    margin-top: 30px;
}
.box-hd {
    height: 45px;
}
.box-hd h3 {
    float: left;
    font-size: 20px;
    color: #494949;
}
.box-hd a {
    float: right;
    font-size: 12px;
    color: #a5a5a5;
    margin-top: 10px;
    margin-right: 30px;
}
/* 鎶妉i 鐨勭埗浜瞮l 淇敼鐨勮冻澶熷涓�琛岃兘瑁呭紑5涓洅瀛愬氨涓嶄細鎹㈣浜� */
.box-bd ul {
    width: 1225px;
}
.box-bd ul li {
    position: relative;
    top: 0;
    float: left;
    width: 380px;
    height: 500px;
    background-color: #fff;
    margin-right: 15px;
    margin-bottom: 15px;
    transition: all .3s;
   
}
.box-bd ul li a {
    display: block;
}
.box-bd ul li:hover {
    top: -8px;
    box-shadow: 0 15px 30px rgb(0 0 0 / 10%);
}
.box-bd ul li img {
    width: 80%;
}
.box-bd ul li h4 {
    margin: 20px 20px 20px 25px;
    font-size: 18px;
    color: #050505;
    font-weight: 400;
}
.box-bd .info {
    margin: 0 20px 0 25px;
    font-size: 12px;
    color: #999;
}

.shiyong{
	font-size:17px;
	color:#0080ff;
}
.xianging{
	color:#000000;
}

.xiaobiaoti{
  font-size:40px;
  margin-bottom:40px;
  text-align: center;
}

.navbar-shangpin {
  background-color: #aec7e1;
  color: #fff;
  padding: 10px;
  display: flex;
  align-items: center;
  border-radius:8px;
}

.nav-list {
  list-style-type: none;
  display: flex;
  justify-content: space-between;
  align-items: center; /* 文本垂直居中 */
  margin-top:12px;
}
.fenlei{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-right:10px;
}

.nav-list li {
  margin-right: 40px;
}

.nav-list li a {
  text-decoration: none;
  color: #000000;
  font-size:20px;

}

.search-box {
  display: flex;
}

.search-box input {
  padding: 5px;
  border: none;
  border-radius: 5px;
}

.search-box button {
  padding: 5px 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.category {
  padding: 20px;
  background-color: #f4f4f4;
  margin-top: 20px;
}




.xtx_panel .xtx_panel_goods_2 {
  height: 610px;
}

.xtx_panel .xtx_panel_goods_2 li {
  width: 240px;
  height: 300px;
  padding-top: 10px;
  margin-left: 30px;
  background-color: #fff;
  border: 1px solid #fff; 
  overflow: hidden;
  transition: 0.3s;
  position: relative;
  float: left;
}

.xtx_panel .xtx_panel_goods_2 li:hover,
.xtx_panel .xtx_panel_goods_2 li.highlighted  {
  border-color: #27BA9B;
}
.xtx_panel .xtx_panel_goods_2 li:hover .extra,
.xtx_panel .xtx_panel_goods_2 li.highlighted .extra {
  bottom: 0;
}
.xtx_panel .xtx_panel_goods_2 li:first-child {
  height: 610px;
  padding-top: 0;
  margin-left: 0;
  border: 0;
}



.xtx_panel .xtx_panel_goods_2 a {
  display: block;
}

.xtx_panel .xtx_panel_goods_2 .img-box {
  width: 240px;
  height: 160px;
  padding: 0 33px;
  text-align: center;
  margin: 0 auto;
  display: table-cell;
  vertical-align: middle;
}

.xtx_panel .xtx_panel_goods_2 .meta {
  height: 130px;
  line-height: 1.3;
  padding: 10px 22px 0;
  font-size: 19px;
  position: relative;
}

.xtx_panel .xtx_panel_goods_2 .name {
  word-break: break-all;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.xtx_panel .xtx_panel_goods_2 .price {
  font-size: 22px;
  color: #CF4444;
  position: absolute;
  bottom: -2px;
}

.xtx_panel .xtx_panel_goods_2 .price small {
  font-size: 17px;
}

.xtx_panel .xtx_panel_goods_2 .extra {
  width: 100%;
  height: 86px;
  padding-top: 10px;
  transition: bottom 0.3s;
  background-color: #27BA9B;
  position: absolute;
  bottom: -86px;
}

.xtx_panel .xtx_panel_goods_2 .extra span {
  display: block;
  width: 124px;
  line-height: 1;
  padding: 9px 0 8px;
  margin: 0 auto;
  text-align: center;
  font-size: 19px;
  color: #fff;
}

.xtx_panel .xtx_panel_goods_2 .extra span:last-child {
  font-size: 13px;
  border-top: 1px solid #fff;
}

.xtx_panel .xtx_panel_goods_2 .label {
  position: absolute;
  left: 0;
  bottom: 266px;
  width: 188px;
  height: 66px;
  text-align: center;
  line-height: 66px;
  color: #fff;
  font-size: 17px;
  border-radius: 0 2px 2px 0;
  background-color: rgba(0, 0, 0, 0.8);
  position: relative;
}

.xtx_panel .xtx_panel_goods_2 .label span:first-child {
  display: block;
  width: 76px;
  background-color: #000;
}

.xtx_panel .xtx_panel_goods_2 .label span:last-child {
  width: 112px;
  line-height: 1.4;
  transform: translate(0, -50%);
  position: absolute;
  left: 76px;
  right: 0;
  top: 50%;
}
.img-box img {
  width: 170px;
  height: 160px;
}

.tuijianwupin{
	font-size:30px;
	color:#333333;
	 font-weight: bold;
}
.name{
	text-align:center;
	color:#f6652e;
	font-size:25px;
	
}
 .extra a {
    text-decoration: none;
  }
   
   
    /* 内联CSS样式 */
  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 550px;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: rgba(211, 227, 253, 0.9);
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-end;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    display: flex;
    align-items: center;
    flex-grow: 1;
    overflow: hidden;
}

.modal-img-container {
    flex: 1;
    max-width: 50%;
    padding-right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#modal-img {
    width: 340px;
    height:300px;
}

.modal-details {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.modal-details p,
.modal-details input,
.modal-details button {
    margin-bottom: 5px;
}

.quantity-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px; /* 确保与其他元素一致 */
}

.quantity-container input {
    width: 50px;
    margin-left: 4px;
    padding: 4px;
    font-size: 14px;
}

#checkout-btn {
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
}


/* 会员充值 */
/* 自定义样式可以在这里添加 */
.recharge-options {
  margin-bottom: 20px;
}

.payment-methods {
  margin-bottom: 20px;
}

.gallery-thumb {
  position: relative;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: auto;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-thumb:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item {
  font-size: 24px;
}

.btn-group {
  margin-bottom: 10px;
}

#payment-form {
  margin-top: 20px;
}



/* 在线留言 */
/* 自定义样式可以在这里添加 */
.contact-sec h2 {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.action-block {
  margin-top: 20px;
}

.btn-capsul {
  border-radius: 50px;
}

.btn-aqua {
  background-color: #00bcd4;
  color: white;
}

.btn-aqua:hover {
  background-color: #0097a7;
}

textarea {
  resize: none;
}


/* 个人中心 */
/* 修改字体颜色 */
.remaining-sessions h3,
.my-bookings h3,
.recommended-courses h3 {
  color: #FFA500; /* 例如橙色 */
}

/* 去掉推荐课程卡片的边框 */
.recommended-courses .card {
  border: none;
}

/* 图片固定大小 */
.recommended-courses .card img {
  width: 300px;
  height: 200px;
}

/* 推荐课程卡片之间的间距 */
.recommended-courses .card {
  margin-bottom: 20px;
}

/* 推荐课程整体与其他内容之间的间距 */
.recommended-courses {
  margin-bottom: 30px;
}


/* 预约课程的弹框 */
 /* 弹框的背景覆盖层 */
.myModal {
  display: none; /* 初始状态下隐藏 */
  position: fixed; /* 固定定位 */
  top: 50%; /* 垂直居中 */
  left: 33%; /* 水平居中 */
  transform: translate(-50%, -50%); /* 使用 transform 属性进行偏移 */
}

/* 弹框内容 */
.modalcontent {
  background-color: rgba(172, 172, 209, 0.8); /* 半透明颜色 */
  width: 300px;
  height: 300px; /* 高度根据内容自动调整 */
  padding: 20px;
  border: 1px solid #888;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 添加一些阴影以提升视觉效果 */
  position: relative;
  font-size: 18px; /* 调整文字大小 */
}

/* 关闭按钮样式 */
.closecourse {
  color: #aaa;
  position: absolute;
  top: 8px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.closecourse:hover,
.closecourse:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* 输入框和文本同一行 */
.modalcontent p {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

/* 输入框样式 */
.modalcontent input[type="text"] {
  margin-left: 10px;
  flex: 1; /* 使输入框占据剩余空间 */
  padding: 5px;
  font-size: 16px;
}

/* 确定按钮样式 */
#submitButton {
  width:80px;
  height:40px;
  background-color: #4CAF50; /* 绿色背景 */
  color: white; /* 白色文字 */
  font-size: 16px; /* 调整按钮文字大小 */
  text-align:center;
  justify-content: center; /* 水平居中 */
  align-items: center; /* 垂直居中 */
  margin-left:85px;
  margin-top:40px;
  border: none; /* 移除边框 */
  border-radius: 4px; /* 添加圆角 */
  cursor: pointer; /* 鼠标悬停时显示手型指针 */
}

#submitButton:hover {
  background-color: #45a049; /* 悬停时的背景颜色 */
}
